package enterprises

import grails.test.*

class TypeConsumerIntegrationTests extends GroovyTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {

    }
	
	void testUniqueName() {
		assertNotNull "should be saved fixture", new TypeConsumer(name:"asd").save(flush:true)		
		def typeConsumerWithDuplicateName = new TypeConsumer(name:"asd")
				
		assertNull "should be not saved", typeConsumerWithDuplicateName.save()				
	}
}
